/**
 * jims
 */
package com.jims.master.modules.orders.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 摆药中间表Entity
 *
 * @author 陈晓阳
 * @version 2017-04-07
 */
public class DrugDispMid extends DataEntity<DrugDispMid> {

    private static final long serialVersionUID = 1L;
    private String patientId;        // 病人Id
    private String visitId;        // 住院Id
    private String itemClass;        // 类别
    private String itemName;        // 项目名称
    private String itemSpec;        // 规格
    private String itemUnit;        // 单位
    private String firmName;        // 厂商
    private String amount;        // 数量
    private double itemPrice;        // 价格
    private double costs;        // 应收费用
    private String newDept;        // 开单科室
    private String newDoct;        // 开单医生
    private String performedBy;        // 执行科室
    private String performedPer;        // 执行人
    private String classOnReckoning;        // 核算项目分类
    private String subjCode;        // 会计科目
    private String classOnMr;        // 病案首页分类
    private String ordersId;        // 医嘱Id
    private String wardCode;        // 所在病区
    private String name;        // 患者姓名
    private String storageName;        // 药房名称
    private String dispNo;        // 摆药序号
    private Integer packageNum;
    private Date curDispDate;
    private String itemCode;//

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public DrugDispMid() {
        super();
    }

    public DrugDispMid(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "病人Id长度必须介于 1 和 64 之间")
    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    @Length(min = 1, max = 64, message = "住院Id长度必须介于 1 和 64 之间")
    public String getVisitId() {
        return visitId;
    }

    public void setVisitId(String visitId) {
        this.visitId = visitId;
    }

    @Length(min = 1, max = 2, message = "类别长度必须介于 1 和 2 之间")
    public String getItemClass() {
        return itemClass;
    }

    public void setItemClass(String itemClass) {
        this.itemClass = itemClass;
    }

    @Length(min = 1, max = 30, message = "项目名称长度必须介于 1 和 30 之间")
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Length(min = 1, max = 20, message = "规格长度必须介于 1 和 20 之间")
    public String getItemSpec() {
        return itemSpec;
    }

    public void setItemSpec(String itemSpec) {
        this.itemSpec = itemSpec;
    }

    @Length(min = 1, max = 10, message = "单位长度必须介于 1 和 10 之间")
    public String getItemUnit() {
        return itemUnit;
    }

    public void setItemUnit(String itemUnit) {
        this.itemUnit = itemUnit;
    }

    @Length(min = 0, max = 30, message = "厂商长度必须介于 0 和 30 之间")
    public String getFirmName() {
        return firmName;
    }

    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    @Length(min = 1, max = 11, message = "数量长度必须介于 1 和 11 之间")
    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public double getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(double itemPrice) {
        this.itemPrice = itemPrice;
    }

    public double getCosts() {
        return costs;
    }

    public void setCosts(double costs) {
        this.costs = costs;
    }

    @Length(min = 1, max = 64, message = "开单科室长度必须介于 1 和 64 之间")
    public String getNewDept() {
        return newDept;
    }

    public void setNewDept(String newDept) {
        this.newDept = newDept;
    }

    @Length(min = 1, max = 64, message = "开单医生长度必须介于 1 和 64 之间")
    public String getNewDoct() {
        return newDoct;
    }

    public void setNewDoct(String newDoct) {
        this.newDoct = newDoct;
    }

    @Length(min = 1, max = 64, message = "执行科室长度必须介于 1 和 64 之间")
    public String getPerformedBy() {
        return performedBy;
    }

    public void setPerformedBy(String performedBy) {
        this.performedBy = performedBy;
    }

    @Length(min = 1, max = 64, message = "执行人长度必须介于 1 和 64 之间")
    public String getPerformedPer() {
        return performedPer;
    }

    public void setPerformedPer(String performedPer) {
        this.performedPer = performedPer;
    }

    @Length(min = 1, max = 20, message = "核算项目分类长度必须介于 1 和 20 之间")
    public String getClassOnReckoning() {
        return classOnReckoning;
    }

    public void setClassOnReckoning(String classOnReckoning) {
        this.classOnReckoning = classOnReckoning;
    }

    @Length(min = 1, max = 20, message = "会计科目长度必须介于 1 和 20 之间")
    public String getSubjCode() {
        return subjCode;
    }

    public void setSubjCode(String subjCode) {
        this.subjCode = subjCode;
    }

    @Length(min = 1, max = 20, message = "病案首页分类长度必须介于 1 和 20 之间")
    public String getClassOnMr() {
        return classOnMr;
    }

    public void setClassOnMr(String classOnMr) {
        this.classOnMr = classOnMr;
    }

    @Length(min = 1, max = 64, message = "医嘱Id长度必须介于 1 和 64 之间")
    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    @Length(min = 1, max = 64, message = "所在病区长度必须介于 1 和 64 之间")
    public String getWardCode() {
        return wardCode;
    }

    public void setWardCode(String wardCode) {
        this.wardCode = wardCode;
    }

    @Length(min = 1, max = 20, message = "患者姓名长度必须介于 1 和 20 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 20, message = "药房名称长度必须介于 1 和 20 之间")
    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    @Length(min = 1, max = 64, message = "摆药序号长度必须介于 1 和 64 之间")
    public String getDispNo() {
        return dispNo;
    }

    public void setDispNo(String dispNo) {
        this.dispNo = dispNo;
    }

    public Integer getPackageNum() {
        return packageNum;
    }

    public void setPackageNum(Integer packageNum) {
        this.packageNum = packageNum;
    }

    public Date getCurDispDate() {
        return curDispDate;
    }

    public void setCurDispDate(Date curDispDate) {
        this.curDispDate = curDispDate;
    }
}